
  
  
        <div id="chitiet">
      <?php
        $username = "root";
        $password = "";
        $hostname = "localhost";
                
        if (isset($_GET['masp'])) {
          $masp=$_GET['masp'];
          if ($masp!="") {
            # code...
            $conn = mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL");
            
          mysql_select_db("worldmusic",$conn) or die("Could not select database");
          mysql_query("SET NAMES 'UTF8'");
          $result = mysql_query("SELECT * FROM product where pID=".$masp."");

          if($result === FALSE) {
            die(mysql_error()); // TODO: better error handling
          }

            echo "<table>";
              while ($row = mysql_fetch_array($result)){

                $link = explode(';',$row['pSpecifications']);
                while($element = each($link))
                {
                  echo "<tr>";
                    echo "<td>";
                      echo $element["value"];
                    echo "</td>";
                  echo "</tr>";
                }
              }
            echo "</table>";
        
          //close the connection
          mysql_close($conn);
          }
          else echo 'masp ko hop le';
          
      
        }
        else echo'Thieu masp';

      ?>
          
      </div>
   
  
